package xyz.bali16.module.invitecode.model.invitecode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author bali2 on 9/3/2023.
 * @version 1.0
 */
@Data
@ApiModel("修改邀请码参数")
public class InviteCodeUpdateParam extends InviteCodeAddParam {
    @ApiModelProperty(name = "id", value = "邀请码id", required = true)
    @NotEmpty(message = "邀请码id不能为空")
    private Long id;

    @ApiModelProperty(name = "isUsed", value = "邀请码是否使用", required = false)
    @NotNull(message = "邀请码是否使用不能为空")
    private String isUsed;

    @ApiModelProperty(name = "num", value = "邀请码使用次数", required = false)
    private Integer num;
}
